package com.cskaoyan.util;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author jzp
 * @since 2022/11/20 19:24
 */
public class FormatUtil {
    private static SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");

    public static String DateFormatString(Date source) {
        // 日期Date 转为 String 格式是yyyy-MM-dd
        return sdf.format(source);
    }
}
